<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/core/common/taglibs.jsp" %>
<%@ include file="/WEB-INF/core/common/top.jsp" %>

<script language="javascript">
  function selectAllBox(){
    var pids  = document.getElementsByName('ids');
    for (var i=0;i<pids.length;i++)
      {
         if(!pids[i].disabled){
             pids[i].checked = document.getElementById("selectAll").checked;
         }
       }
  }
  
  function doDelete(){
      var isSelect =false;
	  var pids  = document.getElementsByName('ids');
	  for (var i=0;i<pids.length;i++)
	  {
	     if(pids[i].checked){
		     isSelect=true;
		     break;
	     }
	  }
      if(isSelect){
         if (confirm('<s:text name="prompt.system.delete.sure"/>')){
		      var form = document.getElementById('mainForm');
		      document.getElementById('act').value='batchDelete';
		      form.action = 'confBlock.action';
		      form.submit();
			  return true;
         }
      }else{
         alert('<s:text name="prompt.system.delete.select"/>');
      }

  }
  
   function sort(_fieldName){
   		var fieldName = document.mainForm.sortField.value;
   		var sortMode='<s:property value="sortMode"/>';
   		if(_fieldName==fieldName){
	   		if('asc'=='<s:property value="sortMode"/>'){
	   		   document.mainForm.sortMode.value='desc';
	   		}
	   		if('desc'=='<s:property value="sortMode"/>'){
	   		   document.mainForm.sortMode.value='asc';
	   		}
   		}else{
   		    document.mainForm.sortField.value=_fieldName;
   		    document.mainForm.sortMode.value='asc';
   		}
   		document.mainForm.act.value="query";
   		document.mainForm.submit();
   }
  function edit(id){
    document.location.href="confBlock.action?act=editInput&id=" + id;
  }
  function dmxAdd(){
    document.location.href="confBlock.action?act=addInput";

  }
  function doImport(){
  	document.location.href="confBlock.action?act=preImport";
  }
  function doExport(){
  	mainForm.atcion="confBlock.action";
  	mainForm.act.value="doExport";
  	mainForm.submit();
  	//document.location.href="confBlock.action?act=doExport";
  }  
  
  function doQuery(){
  	mainForm.atcion="confBlock.action";
  	mainForm.act.value="query";
  	mainForm.submit();
  }
</script>
<body style="overflow-x:hidden;overflow-y:auto;">
<div id="mytest3"></div>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<%@include file="/WEB-INF/core/common/message.jsp"  %>
  <tr><td><table border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="8" height="27"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td>
    <td width="99%" align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:text name="cep.userSns.view.miniblogInfo"/></td>
    <td width="8"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
    </table>
    </td>
  </tr>
  
  <tr>
    <td colspan="3" class="biaoge">	
	<form name="mainForm" method="post" action="${ctx}/attributeManage/confBlock.action">  


      <table id="content" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A6A6A6">

        <tr bgcolor="#C7D6EA">
          <td  align="center" class="table_head" ><s:text name="cep.userSns.view.miniblogInfo.uid" /></td>
          <td  align="center" class="table_head" ><s:text name="cep.userSns.view.miniblogInfo.familyid" /></td>
          <td  align="center" class="table_head" ><s:text name="cep.userSns.view.miniblogInfo.snssite" /></td>
          <td  align="center" class="table_head" ><s:text name="cep.userSns.view.miniblogInfo.snsdesc" /></td>
          <td  align="center" class="table_head" ><s:text name="cep.userSns.view.miniblogInfo.blogid" /></td>
          <td  align="center" class="table_head" ><s:text name="cep.userSns.view.miniblogInfo.nickname" /></td>
          <td  align="center" class="table_head" ><s:text name="cep.userSns.view.miniblogInfo.status" /></td>
        </tr>
 		
 		<s:iterator value="pageInfo.searchResult" id="it" status="st">
	        <tr>
				<td align="center">
                     <exts:property value="1"/>
	            </td>

				<td align="center">
                   <exts:property value="2"/>
	            </td>
				<td align="center">
				   <s:if test="#it[3]==1" >
				      <s:text name="cep.userSns.view.miniblogInfo.type.1"/>
				   </s:if>
				   <s:if test="#it[3]==2" >
				      <s:text name="cep.userSns.view.miniblogInfo.type.2"/>
				   </s:if>
                     
	            </td>
				<td align="center">
                   <exts:property value="4"/>
	            </td>
				<td align="center">
                   <exts:property value="5"/>
	            </td>
				<td align="center">
                   <exts:property value="6"/>
	            </td>
				<td align="center">
				   <s:if test="#it[15]==0" >
				      <s:text name="cep.userSns.view.miniblogInfo.status.0"/>
				   </s:if>
				   <s:if test="#it[15]==1" >
				      <s:text name="cep.userSns.view.miniblogInfo.status.1"/>
				   </s:if>
				   <s:if test="#it[15]==2" >
				      <s:text name="cep.userSns.view.miniblogInfo.status.2"/>
				   </s:if>
				   <s:if test="#it[15]==3" >
				      <s:text name="cep.userSns.view.miniblogInfo.status.3"/>
				   </s:if>  
	            </td>
	        </tr>
	    </s:iterator>
			<tr>
				<td height="16" colspan="16" align="right" bgcolor="#DDE4EA">
				   <input type="button" class="btn" name="btnreturn" onclick="document.location.href='userBaseInfo.action'" value="<s:text name='button.return' />" />
				</td>
			</tr>	
	 </form>
      </table>

          
      <!-- 分页结束 -->	
    </td></tr></table>
</body>

<script>
	tables('content',null);
</script>